﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOABLL;
using TarreOA.TarreOAModels;

public partial class Flow_Info_TRWorkIndex : System.Web.UI.Page {
    public int work_id;
    public int step_sort;
    public string allow_affix = "no";

    protected void Page_Load(object sender, EventArgs e) {
        if(!Page.IsPostBack) {
            if(Request.QueryString.Get("WR_ID") != null && Request.QueryString.Get("ST_SO") != null) {
                work_id = int.Parse(Request.QueryString.Get("WR_ID"));
                step_sort = int.Parse(Request.QueryString.Get("ST_SO"));
                Flow_WorkProcess_Service fwp_service = new Flow_WorkProcess_Service();
                fwp_service.UpdateWorkTransactState(work_id, step_sort);
                if (new Flow_NewWork_Service().findallowaffix(work_id))
                    allow_affix = "yes";
            }
        }
    }
}
